{% extends "base.html" %}
{% block content %}

<h2>Zakładam nowełe temate</h2>
<form action="/forum/nowytemat" method="post">

	{{ form.as_p }}
	<div id="ile">(2000)</div>
	KOdełe: <input type="text" name="kod" maxlength="3" /><img src="/forum/image" /><br />
	<input type="submit" value="Załóż nowy temat" />
</form>
	{% if req.user.is_authenticated %}
	<script type="text/javascript" language="JavaScript">
		document.getElementById('id_autor').setAttribute('readonly', true); 
	</script>
	{% endif %}
{% endblock content %}